import request from "@/utils/request"

// 查询标记管理列表
export function listMarker(query) {
  return request({
    url: "/dashboard/marker/list",
    method: "get",
    params: query
  })
}

// 查询标记管理详细
export function getMarker(id) {
  return request({
    url: "/dashboard/marker/" + id,
    method: "get"
  })
}

// 查询地图数据
export function getMapData() {
  return request({
    url: "/dashboard/marker/1",
    method: "get"
  })
}

// 新增标记管理
export function addMarker(data) {
  return request({
    url: "/dashboard/marker",
    method: "post",
    data: data
  })
}

// 修改标记管理
export function updateMarker(data) {
  return request({
    url: "/dashboard/marker",
    method: "put",
    data: data
  })
}

// 删除标记管理
export function delMarker(id) {
  return request({
    url: "/dashboard/marker/" + id,
    method: "delete"
  })
}
